package com.zzg.learn.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.weibo.api.motan.config.springsupport.annotation.MotanReferer;
import com.zzg.learn.entity.ClassInfo;
import com.zzg.learn.service.support.ClassInfoService;



@RestController
@RequestMapping("/class-info")
public class ClassInfoController {
	
	@MotanReferer(basicReferer = "basicRefererConfig")
	protected ClassInfoService classInfoService;
	
	
	@RequestMapping(value = "/get", method = RequestMethod.GET)
	public ClassInfo get(@RequestParam(value = "id",required = true) String id){
		return classInfoService.get(id);
	}
	
	
	
	
}
